package com.wl.java_spring_boot01.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.wl.java_spring_boot01.modules.account.entity.User;
import com.wl.java_spring_boot01.modules.common.vo.Result;
import com.wl.java_spring_boot01.modules.common.vo.SearchVo;

/**
 * @author 汪林
 * @date 2020/8/20 14:10
 */

public interface UserService {
    //注册用户
    Result<User> insertUser(User user);
    //登录
    Result<User> login(User user);
    //分页
    PageInfo<User> getUsersBySearchVo(SearchVo searchVo);
    //修改
    Result<User> updateUser(User user);
    //删除
    Result<Object> deleteUser(int userId);
    //查询
    User getUserByUserId(int userId);
}
